<%@ page import="com.guotd.ticketSystem.entity.User" %>
<%@page pageEncoding="UTF-8" contentType="text/html; UTF-8" isELIgnored="false" %>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>提交订单</title>
    <link rel="stylesheet" href="css/order.css">
</head>
<body>
<div class="form-container">
        <%
        User user= (User) session.getAttribute("user");
            if (request.getAttribute("order_msg") != null)
            {
        %>
    <div class="error-message"><%= request.getAttribute("order_msg") %></div>
        <%
            }
        %>
    <form action="orderSubmit" method="post">
        <h1>请填写乘机人信息:</h1>
        <input type="hidden" name="userId" value=<%= user.getId() %>>
        <input type="hidden" name="cabinId" value=<%= request.getParameter("cabinId")%>>
        <input type="hidden" name="flightId" value=<%= request.getParameter("flightId")%>>
        证件号码：<input type="text" name="identity" required><br>
        姓名：<input type="text" name="name" required><br>
        出生日期：<input type="date" name="birthday" required><br>
        电话：<input type="text" name="phone" required><br>
        <input type="submit" value="提交">
    </form>
</body>
</html>